package game.objects.weapons.projectiles 
{
	import assets.Assets;
	import game.objects.weapons.CannonWeapon;
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	/**
	 * ...
	 * @author rnk
	 */
	public class CannonBall extends Projectile
	{
		
		public function CannonBall() 
		{
			var img:Image = new Image(Assets.PROJECTILE_CANNNONBALL);
			img.x = -img.width / 2;
			img.y = -img.height / 2;
			graphic = img;
			mass = 2.0;
			
			setHitbox(img.width, img.height, -img.x, -img.y);
		}
		
		override public function Die():void 
		{
			(weapon as CannonWeapon).CannonBallExploded();
			super.Die();
			
		}
		
	}

}